 <%@ page language="java" contentType="text/html" pageEncoding="UTF-8"%>
  <%@page import="com.yuxi.Service.Impl.UserServiceImpl"%>
<%@page import="com.yuxi.Entity.PowerUser"%>
<%@page import="com.yuxi.spring.jbpm.Util.SpringContextUtils"%>
<%@page import="com.yuxi.Service.UserService"%>
<%@page import="com.yuxi.Entity.PowerRole"%>
<%@page import="com.yuxi.view.UserPowerView"%>
 <%@page import="com.yuxi.Entity.PrisonStructure"%>
 <%@ page isELIgnored="false"%>
 
 <% 
 PrisonStructure powerUser=new PrisonStructure();
 PowerRole powerUsers=new PowerRole();
	
%>
<% 	
	try{
		UserPowerView user1=(UserPowerView)request.getSession().getAttribute("userPowerView");
		if(user1==null||user1.getPowerRole()==null){
			UserService curus=(UserService)SpringContextUtils.getBeanByClass(UserService.class);
			user1=curus.curLoginUserPowerView(request.getSession());
		}		
		if(user1==null||user1.getPowerRole()==null){			
			response.sendRedirect("/yuxi/model/home/index.jsp?menuId=0");
		}else{
			powerUser=user1.getMaxStructure();
			powerUsers=user1.getPowerRole();
		}
	}catch(Exception e ){
		response.sendRedirect("/yuxi/model/home/index.jsp?menuId=0");
	}	
%>
 
<!DOCTYPE html>
<html lang="en" >
<head>
	<meta charset="UTF-8">
  <title>渝西监狱大安全信息处理系统</title>
 		<style>
			th span{
				display:block;
				width:10%;
				height:100%;
				text-align: center;
				cursor: pointer;
				margin:0px;
				padding:0px;
			}
			th span .glyphicon{
					
			}
			 th{border-top:1px solid white !important;
			 	border-left:1px solid white !important;
				border-right:1px solid white !important;
			 	 }
			.thhead td{
				font-size: 14px;
				font-weight: bold;
			}
			.tobottom th{
				position: relative;
				/*border:1px solid white;*/
			}
			.tobottom th .glyphicon-chevron-left{
				position: absolute;top: 27px;left: 0px;
				color:white !important;
			}
			.tobottom th .glyphicon-chevron-right{
				position: absolute;top: 27px;right: 0px;
				color:white !important;
			}
			.tobottom th .glyphicon-chevron-left:hover{
				position: absolute;top: 30px;left: 0px;
				color:#3E9E3E !important;
			}
			.tobottom th .glyphicon-chevron-right:hover{
				position: absolute;top: 30px;right: 0px;
				color:#3E9E3E !important;
			}
 		</style>
  </head>
<body>
	<jsp:include  page="../Nav.jsp"/>
	<div class="container-fuild" id="power-data" data-del=<%=powerUsers.isDeleteInformation()%>>
	  <div class="row">
	      <div class="col-xs-2 pr0" style="position: relative;">
	      <jsp:include  page="../Menu.jsp"/>
	      </div>
	      <div class="col-xs-10 " style="
	      padding-top: 10px;">
	       <!--   视图区域 -->   
<div>
	
	<div class="panel panel-primary ">
	   <div class="panel-heading p0 ">	
	      	<!-- 面包屑导航 -->
	      	<ol class="breadcrumb m0 nav-style">
				<li><a href="#"><span class="glyphicon glyphicon-folder-open" aria-hidden="true"></span> &nbsp;信息查询</a></li>
				<li class="active">信息查询</li>
			</ol>
	   </div>
		<div class="panel panel-body m0 " style="margin-bottom: 0px; padding-bottom:0px;">

			<div class="form-group " style="margin-bottom: 0px;">
				<div class="form-group row" >
				 	<div class="col-xs-2">
				 		<input type="text" id="profile" class="form-control" placeholder="请输入简介关键字">
				 	</div>
				 	
				 	<div class="col-xs-3" >
                                <div  id="s0" style="display: none;"></div>
                                    <select multiple="multiple" id="mut"   class="form-control reSearchSource">
                                        <option value=null selected="selected">来源渠道(所有)</option>
                                                        
                                    </select>
                                        
                            </div> 
				 	
					 <div class="col-xs-3" >
                                <select id="fenk"  class="form-control rePort">
                                    <option value=null selected="selected">分口(所有)</option>
                                </select>
                            </div>
                            <div class="col-xs-2"  style="width:160px;" >
										<select class="form-control reSearchFlow">
											<option value=null selected="selected">所在流程(所有)</option>
										</select>
					</div>
					<div class="col-xs-2  " style="width:150px;">
							<select class="form-control repingjia">
								<option value=null selected="selected">评价(所有)</option>
								<option value=1 >已评价</option>
								<option value=2 >未评价</option>
							</select>
						</div>
			 	</div>  
				
				<div class="form-group row">
					<div class="col-xs-3" >
						<input type="text"  class="form-control" id="requestName" placeholder="请输入参与人/录入人姓名或警号">
					</div>
					<div class="col-xs-3"   >
						<input type="text"  class="form-control" id="refinishName" placeholder="请输入完成人姓名或警号">
					</div>
					<div class="col-xs-2  <%=powerUser.getValue()%>" style="width:150px;">
						<select class="form-control reDepartment" data-value="<%=powerUser.getValue()%>" data-id=" <%=powerUser.getId()%>">
							<option value=null selected="selected">部门(所有)</option>
						</select>
					</div>
					<div class="col-xs-2  " >
						<select class="form-control reinputDian">
							<option value=null selected="selected">录入点评(所有)</option>
						</select>
					</div>
					<div class="col-xs-2  " >
						<select class="form-control refinishDian">
							<option value=null selected="selected">完成点评(所有)</option>
						</select>
					</div>
					

				</div>
				<div class="form-group row" >
					<div class="col-xs-2  " style="width:150px;">
				 		<select class="form-control reSearchpes"> 			

				 		    <option value="null" selected="selected">分级(所有)</option>
				 		</select>
				 	</div>
				 	<div class="col-xs-2  " style="width:150px;">
				 		<select class="form-control reSearchsort"> 			

				 		    <option value="null" selected="selected">分类(所有)</option>
				 		</select>
				 	</div> 
					
					 
					<div class="col-xs-2">
						<input datepicker id="starTime" type="text" class="form-control datepicker" readonly="readonly" placeholder="请选择信息建立起始时间">
					</div>

					<div class="col-xs-2">
						<input datepicker id="endTime" type="text" class="form-control datepicker" readonly="readonly" placeholder="请选择建立信息终止时间">		
					</div>
					
					<div class="col-xs-5" >
				 		<button type="button"  id="chooseFlow" class="btn btn-primary ">选择流程提交时间</button>
				 	</div>
				</div>
			 	<div class="form-group row m0 p0" >
				 	<div class="col-xs-3 col-xs-offset-3" >
				 		<button type="button"  id="firstSearch" class="btn btn-primary col-xs-3">查询</button>
				 	</div>

				 	
			 	</div>
			</div>
 	    
</div>
	    <form  class='m0 p0' id="export-form" action="/yuxi/LoginFilter/ExportUserCustomExcel.do" method="post">
		<table class="table table-striped table-bordered m0" id="tableSort">
			<thead>
				<tr class="tobottom">
					<th><!-- <input type="checkbox" name="title" value="{name:\'编号\',fild:\'id\'}" data-name="id" data-title="编号"><br> -->
					<span class="glyphicon glyphicon-chevron-left"></span><span class="glyphicon glyphicon-chevron-right"></span></th>
					<th><!-- <input type="checkbox" name="title" value="{name:\'信息简介\',fild:\'informationProfile\'}" data-name="informationProfile" data-title="信息简介"><br> --><span class="glyphicon glyphicon-chevron-left"></span><span class="glyphicon glyphicon-chevron-right"></th>
					<th><!-- <input type="checkbox" name="title" value="{name:\'分类\',fild:\'informationSortNames\'}" data-name="informationSortNames" data-title="分类"><br> --><span class="glyphicon glyphicon-chevron-left"></span><span class="glyphicon glyphicon-chevron-right"></th>
					<th><!-- <input type="checkbox" name="title" value="{name:\'分级\',fild:\'informationClassificationNames\'}" data-name="informationClassificationNames" data-title="分级"><br> --><span class="glyphicon glyphicon-chevron-left"></span><span class="glyphicon glyphicon-chevron-right"></th>
					<th><!-- <input type="checkbox" name="title" value="{name:\'来源渠道\',fild:\'informationSourceNames\'}" data-name="informationSourceNames" data-title="来源渠道"><br> --><span class="glyphicon glyphicon-chevron-left"></span><span class="glyphicon glyphicon-chevron-right"></th>
					<th><!-- <input type="checkbox" name="title" value="{name:\'录入人\',fild:\'inputPerSonNames\'}" data-name="inputPerSonNames" data-title="参 与 人"><br> --><span class="glyphicon glyphicon-chevron-left"></span><span class="glyphicon glyphicon-chevron-right"></th>
					<th><!-- <input type="checkbox" name="title" value="{name:\'信息建立时间\',fild:\'createTime\'}" data-name="createTime" data-title="信息建立时间"><br> --><span class="glyphicon glyphicon-chevron-left"></span><span class="glyphicon glyphicon-chevron-right"></th>
					<th><!-- <input type="checkbox" name="title" value="{name:\'信息所在流程\',fild:\'flowName\'}" data-name="flowName" data-title="信息所在流程"><br> --><span class="glyphicon glyphicon-chevron-left"></span><span class="glyphicon glyphicon-chevron-right"></th>
					<th></th>
				</tr>
				<tr class="thhead">
					<td onclick="$.sortTable.sort('tableSort',0)" style="cursor: pointer;text-align: center;">编号</td>
					<td onclick="$.sortTable.sort('tableSort',1)" style="cursor: pointer;text-align: center;">分口</td>
					<td onclick="$.sortTable.sort('tableSort',2)" style="cursor: pointer;text-align: center;">渠道</td>
					<td onclick="$.sortTable.sort('tableSort',3)" style="cursor: pointer;text-align: center;">分类</td>
					<td onclick="$.sortTable.sort('tableSort',4)" style="cursor: pointer;text-align: center;">分级</td>
					<td onclick="$.sortTable.sort('tableSort',5)" style="cursor: pointer;text-align: center;">简介</td>
					<td onclick="$.sortTable.sort('tableSort',6)" style="cursor: pointer;text-align: center;">信息建立时间</td>
					<td onclick="$.sortTable.sort('tableSort',7)" style="cursor: pointer;text-align: center;">信息所在流程</td>
					<td onclick="$.sortTable.sort('tableSort',8)" style="cursor: pointer;text-align: center;">录入人</td>
					<td onclick="$.sortTable.sort('tableSort',9)" style="cursor: pointer;text-align: center;">操作</td>
				</tr>
			</thead> 
			<tbody id="tablebody">
				<!-- 数据填充 -->
			</tbody>
		</table>

		<div class="panel-footer">

            <div class="row">

            	<div class="col-xs-4">
            		<div class="form-group" >
						<div class="btn-group">
							<input  type="button" id="select-all" class="btn btn-primary " value="全选">
							<input type="button" id="select-fan" class="btn btn-primary " value="反选">
							<input type="button"  id="ExcelFrist" value='导出选中信息到查询结果表' class="btn btn-primary"/>
						</div>
					</div>
					</div>
		        <div class="col-xs-offset-4 col-xs-4">
		            <ul class="pagination m0 p0">
		                <li><a href="#" id="headPage">&laquo;首页</a></li>
		                <li ><a href="#" id="prevPage">上一页</a></li>
		                <li class="active"><a href="javascript:;"  id="totalPage">1/0</a></li>
		                <li><a href="#" id="nextPage">下一页</a></li>

		                <li><a href="#" id="endPage">尾页&raquo;</a></li>
		            </ul>		        </div>
      		</div>

		</div>

		        
      		</div>

		</div>
</div>



			<!--时间模态框 -->
			<div class="modal fade " id="chooseFlowmodel">
			  <div class="modal-dialog" > 
			    <div class="modal-content">
			      <div class="modal-header">
			        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			        <h4 class="modal-title">完成时间</h4>
			      </div>
			      <div class="modal-body" id="informationTo">	
			     		
					 	
						<div class="form-group row " >

					 	  	<div class="col-xs-5  col-xs-offset-1">
								<input datepicker id="firstStartTime" type="text" class="form-control datepicker" readonly="readonly" placeholder="提交初审起始时间">
							</div>

							<div class="col-xs-5">
								<input datepicker id="firstEndTime" type="text" class="form-control datepicker" readonly="readonly" placeholder="提交初审终止时间">		
							</div>  

						</div>    
						<div class="form-group row " >

					 	  	<div class="col-xs-5 col-xs-offset-1">
								<input datepicker id="recheckStartTime" type="text" class="form-control datepicker" readonly="readonly" placeholder="提交复核起始时间">
							</div>

							<div class="col-xs-5">
								<input datepicker id="recheckEndTime" type="text" class="form-control datepicker" readonly="readonly" placeholder="提交复核终止时间">		
							</div>  

						</div>    
						<div class="form-group row " >

					 	  	<div class="col-xs-5 col-xs-offset-1">
								<input datepicker id="checkStarTime" type="text" class="form-control datepicker" readonly="readonly" placeholder="提交审核起始时间">
							</div>

							<div class="col-xs-5">
								<input datepicker id="checkEndTime" type="text" class="form-control datepicker" readonly="readonly" placeholder="提交审核终止时间">		
							</div>  

						</div>    
						<div class="form-group row " >

					 	  	<div class="col-xs-5  col-xs-offset-1">
								<input datepicker id="researchStarTime" type="text" class="form-control datepicker" readonly="readonly" placeholder="提交研判起始时间">
							</div>

							<div class="col-xs-5">
								<input datepicker id="researchEndTime" type="text" class="form-control datepicker" readonly="readonly" placeholder="提交研判终止时间">		
							</div>  

						</div>    
			      </div>
			      <div class="modal-footer">
			        <button type="button" id="sureTogether" class="btn btn-primary" data-dismiss="modal">确认</button>
			        
			      </div>
			    </div><!-- /.modal-content -->
			  </div><!-- /.modal-dialog -->
			</div><!-- /.modal-->



    	<!--导出表模态框 -->
		<div class="modal fade " id="Daomodal">
			<div class="modal-dialog" style="width: 300px;">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-label="Close">
							<span aria-hidden="true">&times;</span>
						</button>
						<h4 class="modal-title">输入导出表名称</h4>
					</div>
					<div class="modal-body">
						
							<input name="tablename" id="excelName" type="text" class="form-control " placeholder="请输入导出表名" >

							<ul class="list-group">
								<li class="list-group-item"><input type="checkbox" name="title" value="{name:\'编号\',fild:\'id\'}" data-name="id" data-title="编号">编号</li>
							  <li class="list-group-item"><input type="checkbox" name="title" value="{name:\'信息简介\',fild:\'informationProfile\'}" data-name="informationProfile" data-title="信息简介">信息简介</li>
							  <li class="list-group-item"><input type="checkbox" name="title" value="{name:\'信息内容\',fild:\'informationConternt\'}" data-name="informationConternt" data-title="信息内容">信息内容</li>
							  <li class="list-group-item"><input type="checkbox" name="title" value="{name:\'处置措施\',fild:\'mesure\'}" data-name="mesure" data-title="处置措施">处置措施</li>
							  <li class="list-group-item"><input type="checkbox" name="title" value="{name:\'分口\',fild:\'safetyPortNames\'}" data-name="safetyPortNames" data-title="分口">分口</li>
							  <li class="list-group-item"><input type="checkbox" name="title" value="{name:\'分类\',fild:\'informationSortNames\'}" data-name="informationSortNames" data-title="分类">分类</li>
							  <li class="list-group-item"><input type="checkbox" name="title" value="{name:\'分级\',fild:\'informationClassificationNames\'}" data-name="informationClassificationNames" data-title="分级">分级</li>
							  <li class="list-group-item"><input type="checkbox" name="title" value="{name:\'来源渠道\',fild:\'informationSourceNames\'}" data-name="informationSourceNames" data-title="来源渠道">来源渠道</li>
							  <li class="list-group-item"><input type="checkbox" name="title" value="{name:\'参与人\',fild:\'inputPerSonNames\'}" data-name="inputPerSonNames" data-title="参 与 人">参 与 人</li>						
							  <li class="list-group-item"><input type="checkbox" name="title" value="{name:\'信息建立时间\',fild:\'createTime\'}" data-name="createTime" data-title="信息建立时间">信息建立时间</li>
							  <li class="list-group-item"><input type="checkbox" name="title" value="{name:\'信息所在流程\',fild:\'flowName\'}" data-name="flowName" data-title="信息所在流程">信息所在流程</li>
							   <li class="list-group-item"><input type="checkbox" name="title" value="{name:\'责任人',fild:\'zeRenPerSonNames'}" data-name="flowName" data-title="责任人">责任人</li>
							    <li class="list-group-item"><input type="checkbox" name="title" value="{name:\'完成时限\',fild:\'zeRenTime'}" data-name="flowName" data-title="完成时限">完成时限</li>
							      <li class="list-group-item"><input type="checkbox" name="title" value="{name:\'完成情况\',fild:\'taskCompletion'}" data-name="flowName" data-title="完成情况">完成情况</li>
							     <li class="list-group-item"><input type="checkbox" name="title" value="{name:\'派遣人',fild:\'taskDispatchName'}" data-name="flowName" data-title="派遣人">派遣人</li>
							      <li class="list-group-item"><input type="checkbox" name="title" value="{name:\'派遣时间',fild:\'taskDispatchTime'}" data-name="flowName" data-title="派遣时间">派遣时间</li>
									<li class="list-group-item"><input type="checkbox" name="title" value="{name:\'派遣备注',fild:\'ZeRenRemark'}" data-name="flowName" data-title="派遣备注">派遣备注</li>
									<li class="list-group-item"><input type="checkbox" name="title" value="{name:\'录入人',fild:\'userId'}" data-name="flowName" data-title="录入人">录入人</li>
									<li class="list-group-item"><input type="checkbox" name="title" value="{name:\'信息归属',fild:\'informationType'}" data-name="flowName" data-title="信息归属">信息归属</li>
									<li class="list-group-item"><input type="checkbox" name="title" value="{name:\'流程处理表',fild:\'flowDo'}" data-name="flowName" data-title="流程处理表">流程处理表</li>
									<li class="list-group-item"><input type="checkbox" name="title" value="{name:\'点评记录',fild:\'commentdo'}" data-name="flowName" data-title="点评记录">点评记录</li>
							</ul>


							

							
						
				
					</div>
					<div class="modal-footer">
						<button id="Nameok" type="button" class="btn btn-block btn-primary" data-dismiss="modal">确认</button>
					</div>
				</div>
				<!-- /.modal-content -->
			</div>
			<!-- /.modal-dialog -->
		</div>
		<!-- /.modal-->
</div>

	<script type="text/javascript" src="../../js/firstController/informationSearch/informationSearch.js"></script>
	 <script type="text/javascript" src="../../js/PageSelect.js"></script>
	 <script type="text/javascript" src="../../js/YuXi.InfoQuery.js"></script>
	 <script type="text/javascript" src="../../js/YuXi.Render.InformationSeach.js"></script>
	 <script type="text/javascript" src="../../js/ALLSearch.js"></script>
	   

</body>
</html>